﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using CCWin; 
namespace JajaRun
{
    public partial class Form1 : CCSkinMain
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

       

        private void 提成统计ToolStripMenuItem_Click(object sender, EventArgs e)
        {
         
        }

        private void skinButton1_Click(object sender, EventArgs e)
        {

        }

        private void skinButton5_Click(object sender, EventArgs e)
        {

            List<TiCheng> tcList = new List<TiCheng> ();
            TiCheng Tc = new TiCheng();

            Tc.decBegin = 300;
            Tc.decEnd = 500;
            Tc.decTiCheng = 3;
            tcList.Add(Tc );
            Tc = new TiCheng();
            Tc.decBegin = 500;
            Tc.decEnd = 800;
            Tc.decTiCheng = 5;
            tcList.Add(Tc);
            Tc = new TiCheng();
            Tc.decBegin = 800;
            Tc.decEnd = 1000;
            Tc.decTiCheng = 8;
            tcList.Add(Tc);
            Tc = new TiCheng();
            Tc.decBegin = 1000;
            Tc.decEnd = 1000000000;
            Tc.decTiCheng = 13;
            tcList.Add(Tc);


            double m = Convert.ToDouble(skinNumericUpDown1.Value);

            MessageBox.Show(Tc.GetTiChengMoney (m,tcList ).ToString ());
        }
    }
}
